<extend name="Base/common"/>

<block name="style">
<link href="__CSS__/markdown.css" rel="stylesheet">
<link href="__CSS__/prettify.css" rel="stylesheet">
<link href="__CSS__/sunburst.css" rel="stylesheet">
</block>

<block name="header">
    <header class="jumbotron subhead" id="overview">
		<div class="container">
			<h2>{$info.title}</h2>
			<p>
				<span  class="pull-left">
					<span class="author">{$info.uid|get_username}</span>
					<span> 发表于 {$info.create_time|date='Y-m-d H:i',###}</span>
				</span>
				<span class="pull-right">
					<article:prev name="prev" info="info">
                        <a href="{:U('?id='.$prev['id'])}">上一篇</a>
                    </article:prev>
                    <article:next name="next" info="info">
                        <a href="{:U('?id='.$next['id'])}">下一篇</a>
                    </article:next>
				</span>
			</p>
		</div>
	</header>
</block>

<block name="body">
    <div class="span9 main-content">
        <!-- Contents
        ================================================== -->
        <section id="contents">
        <switch name="info.parse">
        	<case value="0">{$info.content}</case>
        	<case value="1"></case>
        	<case value="2">{:W('Parsedown/index', array($info['content']))}</case>
        	<default />
        </switch>
        </section>
        <hr/>
        {:hook('documentDetailAfter',$info)}
    </div>
</block>

<block name="script">
<script type="text/javascript" src="__JS__/prettify.js"></script>
<script>
$(window).load(function(){
     $("pre").addClass("prettyprint");
     prettyPrint();
})
</script>
</block>
